package net.expectx.micro.shop.api.manager;


import net.expectx.common.single.util.PropertiesFileUtil;
import net.expectx.micro.shop.api.manager.impl.RedisTokenManager;

public class RedisTokenSingle {
    private static RedisTokenSingle instance;
    private static TokenManager tokenManager;
    private RedisTokenSingle(){

    }
    public static RedisTokenSingle getInstance(){
        if(instance==null){
            instance=new RedisTokenSingle();
            tokenManager=new RedisTokenManager();
        }
        return instance;
    }
    public synchronized TokenManager tokenManager(){
        return tokenManager;
    }
    public static void main(String [] args){
        System.out.println(PropertiesFileUtil.getInstance("application").get("master.redis.ip"));
        //RedisUtil.get("111");


    }
}
